/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package org.abc;

/**
 * <p>Project: jse2303 - Op1
 * <p>Powered by webrx On 2023-07-06 14:41:00
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Op1 {
    public static void main(String[] args) {
        // +
        System.out.println(2 + 5);
        System.out.println("hello" + 16);
        System.out.println(+6 + -2);

        System.out.println("--------------");
        // -
        System.out.println(-2);
        System.out.println(6 - 2);

        System.out.println("--------------");
        // *
        int a = 3;
        int b = 4;
        System.out.println(a * b);

        System.out.println("--------------");
        // /
        System.out.println(b / a);
        System.out.println(1f * 3 / 2);

        // %
        System.out.println(b % a);

        System.out.println("--------------");
        // ++ --
        int i = 3;
        int j = i++;
        System.out.println(++i);//5
        System.out.println(--j);//2
    }
}
